(function(){"use strict";BX.namespace("BX");var e=BX.type.isFunction(window.ResizeObserver)&&BX.type.isFunction(window.ResizeObserverEntry);if(e){BX.ResizeObserver=window.ResizeObserver;return}BX.ResizeObserver=function(e){this.callback=e;this.targets=new BX.ResizeObserverItemCollection;BX.ResizeObserver.observers.push(this)};BX.ResizeObserver.observers=new BX.ResizeObserverCollection;BX.ResizeObserver.broadcastObservation=function(){BX.ResizeObserver.observers.forEach(function(e){var s=e.targets.getActive();if(s.length){clearTimeout(e.timeout);e.timeout=setTimeout(function(){e.callback(s)},400)}});BX.ResizeObserver.setFrameWait(BX.ResizeObserver.broadcastObservation)};BX.ResizeObserver.setFrameWait=function(e){setTimeout(function(){if(typeof window.requestAnimationFrame==="function"){window.requestAnimationFrame(e)}else{e()}},200)};BX.ResizeObserver.run=function(){BX.ResizeObserver.setFrameWait(BX.ResizeObserver.broadcastObservation)};BX.ResizeObserver.prototype={observe:function(e){if(!this.targets.hasTarget(e)){this.targets.push(new BX.ResizeObserverItem(e))}},unobserve:function(e){this.targets.removeTarget(e)},disconnect:function(){this.targets=new BX.ResizeObserverItemCollection}};BX.ResizeObserver.run()})();
//# sourceMappingURL=resize_observer.map.js